﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Employeer/Employeer.master" Title="npljobs.com || Post New Jobs"
    CodeFile="PostNewJobs.aspx.cs" Inherits="Employeer_PostNewJobs" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="contentBody" ContentPlaceHolderID="MainContent" runat="server">
    <script src="../Scripts/jquery-ui.min.js"></script>
    <script>
        function ValidateJobLeveel(source, arguments) {
            arguments.IsValid = ($("#<%=rdlJobLeveel.ClientID %> :checkbox:checked").length > 0);
        }

        function ValidateContactPerson(source, arguments) {
            arguments.IsValid = ($("#<%=txtContactPerson.ClientID %>").val().length > 0);
        }

        function ValidateApplicantResumeAs(source, arguments) {
            arguments.IsValid = ($("#<%=chkApplicantResumeAs.ClientID %> :checkbox:checked").length > 0);
        }

        function ValidateApplicantSalaryRange(source, arguments) {
            var index = $("#<%=rdoSalaryRange.ClientID %> :radio:checked").val();
            if (index == 2) {
                if ($("#<%=txtMinimum.ClientID %>").val().length == 0 || $("#<%=txtMaximum.ClientID %>").val().length == 0)
                    arguments.IsValid = false;
                else
                    arguments.IsValid = true;
            }
        }

        function ValidateJobType(source, arguments) {
            arguments.IsValid = ($("#<%=rdlJobType.ClientID %> :radio:checked").length > 0);
        }

        function ValidateApplicationDeadline(source, arguments) {
            var isvalid = true;
            if ($get('<%=txtApplicationDeadline.ClientID %>').value.length > 0) {
                $.ajax({
                    type: "POST",
                    url: "PostNewJobs.aspx/GetServerTime",
                    data: JSON.stringify({}),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    cache: false,
                    async: false,
                    success: function (msg) {
                        var obj = msg.d;
                        var currentDate = new Date(obj);
                        var appDeadline = $get('<%=txtApplicationDeadline.ClientID %>').value;
                        var dArr = appDeadline.split("/");
                        var applicationDeadline = new Date(dArr[1] + "/" + dArr[0] + "/" + dArr[2]);
                        var timeDiff = Math.abs(applicationDeadline.getTime() - currentDate.getTime());
                        var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24));

                        if (diffDays > 40)
                            isvalid = false;
                    },
                    error: function (data, status, jqXHR) {
                        //                        ShowErrorMsg(status);
                    }
                });
            }
            arguments.IsValid = isvalid;
        }

        function ValidateCompanyDescription(source, arguments) {
            var isvalid = true;
            $.ajax({
                type: "POST",
                url: "PostNewJobs.aspx/HasCompanyDescription",
                data: JSON.stringify({}),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                async: false,
                success: function (msg) {
                    var obj = msg.d; console.log(obj);
                    if (obj == false)
                        isvalid = false;
                },
                error: function (data, status, jqXHR) {
                }
            });
            arguments.IsValid = isvalid;
        } 

        function ValidatePostalAddress(source, arguments) {
            var isvalid = true;
            $.ajax({
                type: "POST",
                url: "PostNewJobs.aspx/HasPostalAddress",
                data: JSON.stringify({}),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                async: false,
                success: function (msg) {
                    var obj = msg.d; console.log(obj);
                    if (obj == false)
                        isvalid = false;
                },
                error: function (data, status, jqXHR) {
                }
            });
            arguments.IsValid = isvalid;
        }

        function setPostedJobsCount() {
            $.ajax({
                type: "POST",
                url: "PostNewJobs.aspx/GetPostedJobsCount",
                data: JSON.stringify({}),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                //async: false,
                success: function (msg) {
                    var obj = msg.d;
                    $('#<%=hfNoOfJobsCount.ClientID %>').val(obj);
                    $('#<%=lblPostedJobsList.ClientID %>').html(obj);
                    if (obj === 0) {
                        $("#aPostedJobsList").removeAttr("href"); //.css("cursor", "pointer");
                    }
                },
                error: function (data, status, jqXHR) {
                    //                    ShowErrorMsg(status);
                }
            });
        }

        function Cancelation() {
            window.location = window.location.href;
        }

        function LoadDatePicker() {
            $("#<%=txtApplicationDeadline.ClientID %>").datepicker({
                showOn: "button",
                buttonImage: "../Images/calendar.png",
                dateFormat: 'dd/mm/yy',
                buttonImageOnly: true
                //changeMonth: true,
                //changeYear: true
            });
        }

        function InIEvent() {
            $("#<%=txtNoOfVacancies.ClientID %>").ForceNumberOnly();
            //$("#<%=txtMinimum.ClientID %>").ForceNumberOnly();
            //$("#<%=txtMaximum.ClientID %>").ForceNumberOnly();

            LoadDatePicker();

            $('#<%=lblPostedJobsList.ClientID %>').html($('#<%=hfNoOfJobsCount.ClientID %>').val());

            ShowHideRequiredExperience();

            $('#<%=rdoJobLocationType.ClientID %>').change(ShowHideJobLocationType);
            ShowHideJobLocationType();
        }

        function ShowHideRequiredExperience() {
            var val = $('#<%=chkRequiredExperience.ClientID %> input:checked').val();
            if (val === '0') {
                $(".RequiredExperience").css('display', 'inline-block');
            }
            else
                $(".RequiredExperience").css('display', 'none');
        }

        function ShowHideJobLocationType() {
            $("#divJobLocationWithinControls").css('display', 'none');
            $("#divJobLocationOutsideControls").css('display', 'none');
            $("#divJobLocationDetailsWithin").css("display", "none");
            $("#divJobLocationDetailsOutside").css("display", "none");

            var val = $('#<%=rdoJobLocationType.ClientID %> input:checked').val();
            if (val === "0") {
            }
            else if (val === "1") {
                $("#divJobLocationWithinControls").css('display', 'inline-block');
                $("#divJobLocationDetailsWithin").css("display", "inline-block");

                LoadDivision();

                if (isDeleted === false)
                    LoadJobLocationCitiesByJob();
            }
            else if (val === "2") {
                LoadCountry();
                LoadJobLocationOutsideCitiesByJob();
                $("#divJobLocationOutsideControls").css('display', 'inline-block');
                $("#divJobLocationDetailsOutside").css("display", "inline-block");
            }
        }

        var isDeleted = false;
        function DeleteCityRow(row) {
            row.closest('tr').remove();
            isDeleted = true;
            var index = 0;
            $('#tblJobLocationDetails >tbody tr').each(function () {
                index = index + 1;
                $(this).find('td:first').html(index);
            });
        }

        function DeleteOutsideCityRow(row) {
            row.closest('tr').remove();
            var index = 0;
            $('#tblJobLocationDetailsOutside >tbody tr').each(function () {
                index = index + 1;
                $(this).find('td:first').html(index);
            });
        }

        function LoadJobLocationCitiesByJob() {
            var jobId = $("#<%= hfJobId.ClientID %>").val();
            if (jobId.length > 0) {
                $.ajax({
                    type: "POST",
                    url: "PostNewJobs.aspx/GetJobLocationCities",
                    data: JSON.stringify({ "jobId": jobId }),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    cache: false,
                    async: true,
                    success: function (msg) {
                        var obj = JSON.parse(msg.d);
                        var html = "";
                        var index = 0;
                        $.each(obj, function (key, value) {
                            index = index + 1;
                            html = html + "<tr>";
                            html = html + "<td>" + index + "</td>";
                            html = html + "<td><input type='hidden' id='" + value.DivisionID + "' value='" + value.DivisionName + "' />";
                            html = html + value.DivisionName + "</td>";
                            html = html + "<td><input type='hidden' id='" + value.DistrictID + "' value='" + value.DistrictName + "' />";
                            html = html + value.DistrictName + "</td>";
                            html = html + "<td><input type='hidden' id='" + value.CityID + "' value='" + value.CityName + "' />";
                            html = html + value.CityName + "</td>";
                            html = html + "<td><a class='action' href='#' onclick ='DeleteCityRow($(this)); return false;'>Delete</a></td>";
                            html = html + "</tr>";
                        });
                        $("#tblJobLocationDetails >tbody").html('');
                        $("#tblJobLocationDetails >tbody").append(html);
                    },
                    error: function (data, status, jqXHR) {
                        //                        ShowErrorMsg(status);
                    }
                });
            }
        }

        function LoadJobLocationOutsideCitiesByJob() {
            var jobId = $("#<%= hfJobId.ClientID %>").val();
            if (jobId.length > 0) {
                $.ajax({
                    type: "POST",
                    url: "PostNewJobs.aspx/GetJobLocationOutsideCities",
                    data: JSON.stringify({ "jobId": jobId }),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    cache: false,
                    async: true,
                    success: function (msg) {
                        var obj = JSON.parse(msg.d);
                        var html = "";
                        var index = 0;
                        $.each(obj, function (key, value) {
                            index = index + 1;
                            html = html + "<tr>";
                            html = html + "<td>" + index + "</td>";
                            html = html + "<td><input type='hidden' id='" + value.CountryID + "' value='" + value.CountryName + "' />";
                            html = html + value.CountryName + "</td>";
                            html = html + "<td><input type='hidden' id='" + value.CityName + "' value='" + value.CityName + "' />";
                            html = html + value.CityName + "</td>";
                            html = html + "<td><a class='action' href='#' onclick ='DeleteOutsideCityRow($(this)); return false;'>Delete</a></td>";
                            html = html + "</tr>";
                        });
                        $("#tblJobLocationDetailsOutside >tbody").html('');
                        $("#tblJobLocationDetailsOutside >tbody").append(html);
                    },
                    error: function (data, status, jqXHR) {

                    }
                });
            }
        }

        function LoadCountry() {
            $.ajax({
                type: "POST",
                url: "PostNewJobs.aspx/GetCountrys",
                data: JSON.stringify({}),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                async: true,
                success: function (msg) {
                    $('#ddlCountry').empty();
                    $('#ddlCountry').append("<option value='-1'>None</option>");
                    var obj = JSON.parse(msg.d);
                    $.each(obj, function (key, value) {
                        $('#ddlCountry').append($('<option>', {
                            value: value.ID,
                            text: value.Name
                        }));
                    });
                },
                error: function (data, status, jqXHR) {
                    //                    ShowErrorMsg(status);
                }
            });
        }

        function LoadDivision() {
            $.ajax({
                type: "POST",
                url: "PostNewJobs.aspx/GetDivisions",
                data: JSON.stringify({}),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                async: true,
                success: function (msg) {
                    $('#ddlDivision').empty();
                    $('#ddlDivision').append("<option value='-1'>None</option>");
                    var obj = JSON.parse(msg.d);
                    $.each(obj, function (key, value) {
                        $('#ddlDivision').append($('<option>', {
                            value: value.ID,
                            text: value.Name
                        }));
                    });
                },
                error: function (data, status, jqXHR) {
                    //                    ShowErrorMsg(status);
                }
            });
        }

        function LoadDistrict(divisionId) {
            $.ajax({
                type: "POST",
                url: "PostNewJobs.aspx/GetDistricts",
                data: JSON.stringify({ "divisionId": divisionId }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                async: true,
                success: function (msg) {
                    $('#ddlDistrict').empty();
                    $('#ddlDistrict').append("<option value='-1'>None</option>");

                    $('#ddlCity').empty();
                    $('#ddlCity').append("<option value='-1'>None</option>");

                    var obj = JSON.parse(msg.d);
                    $.each(obj, function (key, value) {
                        $('#ddlDistrict').append($('<option>', {
                            value: value.ID,
                            text: value.Name
                        }));
                    });
                },
                error: function (data, status, jqXHR) {
                    //                    ShowErrorMsg(status);
                }
            });
        }
        function LoadCity(districtId) {
            $.ajax({
                type: "POST",
                url: "PostNewJobs.aspx/GetCities",
                data: JSON.stringify({ "districtId": districtId }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                async: true,
                success: function (msg) {
                    $('#ddlCity').empty();
                    $('#ddlCity').append("<option value='-1'>None</option>");
                    var obj = JSON.parse(msg.d);
                    $.each(obj, function (key, value) {
                        $('#ddlCity').append($('<option>', {
                            value: value.ID,
                            text: value.Name
                        }));
                    });
                },
                error: function (data, status, jqXHR) {
                    //                    ShowErrorMsg(status);
                }
            });
        }

        $('#ddlDivision').live('change', function () {
            var divisionId = $(this).val();
            LoadDistrict(divisionId);
        });
        $('#ddlDistrict').live('change', function () {
            var districtId = $(this).val();
            LoadCity(districtId);
        });

        function AddCitiyInRow() {
            var divisionId = $('#ddlDivision').find("option:selected").val();
            var divisionName = $('#ddlDivision').find("option:selected").text();

            var districtId = $('#ddlDistrict').find("option:selected").val();
            var districtName = $('#ddlDistrict').find("option:selected").text();

            var cityId = $('#ddlCity').find("option:selected").val();
            var cityName = $('#ddlCity').find("option:selected").text();

            var html = "";
            var index = $('#tblJobLocationDetails >tbody tr').length;
            index = index + 1;
            html = html + "<tr>";
            html = html + "<td>" + index + "</td>";
            html = html + "<td><input type='hidden' id='" + divisionId + "' value='" + divisionName + "' />";
            html = html + divisionName + "</td>";
            html = html + "<td><input type='hidden' id='" + districtId + "' value='" + districtName + "' />";
            html = html + districtName + "</td>";
            html = html + "<td><input type='hidden' id='" + cityId + "' value='" + cityName + "' />";
            html = html + cityName + "</td>";
            html = html + "<td><a class='action' href='#' onclick ='DeleteCityRow($(this)); return false;'>Delete</a></td>";
            html = html + "</tr>";
            $("#tblJobLocationDetails >tbody").append(html);
        }

        function AddOutsideCitiyInRow() {
            var countryId = $('#ddlCountry').find("option:selected").val();
            var countryName = $('#ddlCountry').find("option:selected").text();

            var cityName = $('#txtCityName').val();

            var html = "";
            var index = $('#tblJobLocationDetailsOutside >tbody tr').length;
            index = index + 1;
            html = html + "<tr>";
            html = html + "<td>" + index + "</td>";
            html = html + "<td><input type='hidden' id='" + countryId + "' value='" + countryName + "' />";
            html = html + countryName + "</td>";
            html = html + "<td><input type='hidden' id='" + cityName + "' value='" + cityName + "' />";
            html = html + cityName + "</td>";
            html = html + "<td><a class='action' href='#' onclick ='DeleteCityRow($(this)); return false;'>Delete</a></td>";
            html = html + "</tr>";
            $("#tblJobLocationDetailsOutside >tbody").append(html);
        }

        $("#<%=btnAdd.ClientID %>").live('click', function () {
            var divisionId = $('#ddlDivision').find("option:selected").val();
            var districtId = $('#ddlDistrict').find("option:selected").val();
            var cityId = $('#ddlCity').find("option:selected").val();

            DisplayLocationError();

            if (divisionId < 0)
                return;
            else
                $("#errDivision").css('display', 'none');

            if (districtId < 0)
                return;
            else
                $("#errDistrict").css('display', 'none');

            if (cityId < 0)
                return;
            else
                $("#errCity").css('display', 'none');

            AddCitiyInRow();
            ClearLocationError();
            SetLocationDropDownsNone();
        });

        $("#<%=btnAddOutside.ClientID %>").live('click', function () {
            var countryId = $('#ddlCountry').find("option:selected").val();

            $("#errCountry").css('display', 'inline-block');
            $("#errCityName").css('display', 'inline-block');

            if (countryId < 0)
                return;
            else
                $("#errCountry").css('display', 'none');

            if ($('#txtCityName').val().trim().length < 1)
                return;
            else
                $("#errCityName").css('display', 'none');


            AddOutsideCitiyInRow();
            $("#ddlCountry").val('-1');
            $("#txtCityName").val('');
        });

        function SetLocationDropDownsNone() {
            $("#ddlDivision").val('-1');
            $("#ddlDistrict").val('-1');
            $("#ddlCity").val('-1');
        }

        function DisplayLocationError() {
            $("#errDivision").css('display', 'inline-block');
            $("#errDistrict").css('display', 'inline-block');
            $("#errCity").css('display', 'inline-block');
        }

        function ClearLocationError() {
            $("#errDivision").css('display', 'none');
            $("#errDistrict").css('display', 'none');
            $("#errCity").css('display', 'none');
        }

        $(document).ready(InIEvent);

        $(function () {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(InIEvent);

            setPostedJobsCount();
            //LoadDivision();

            $("#contact_person_modal_dialog").dialog({
                title: "Contact Person List",
                modal: true,
                autoOpen: false,
                width: 700,
                height: 400,
                resizable: false,
                appendTo: "form",
                buttons: {
                },
                close: function () {
                    SetContact();
                }
            });

            function SetContact() {
                var radio = $("input[name='group1']:checked");
                var contactPersonID = radio.attr('id');
                if (typeof (contactPersonID) != 'undefined') {
                    $.ajax({
                        type: "POST",
                        url: "PostNewJobs.aspx/GetContactPerson",
                        data: JSON.stringify({ "contactPersonID": contactPersonID }),
                        contentType: "application/json; charset=utf-8",
                        dataType: "json",
                        cache: false,
                        async: false,
                        success: function (msg) {
                            var obj = JSON.parse(msg.d);
                            $("#<%=hfContactPersonID.ClientID %>").val(obj.ContactPersonID);
                            $("#<%=txtContactPerson.ClientID %>").val(obj.LastName + " " + obj.FirstName);
                        },
                        error: function (data, status, jqXHR) {
                            //                        ShowErrorMsg(status);
                        }
                    });
                }
            }

            function LoadContactsByEmployer(currentContactPersonID) {
                $.ajax({
                    type: "POST",
                    url: "PostNewJobs.aspx/GetContactsPerson",
                    data: JSON.stringify({}),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    cache: false,
                    async: false,
                    success: function (msg) {
                        var obj = JSON.parse(msg.d);
                        var html = "";
                        $.each(obj, function (key, value) {
                            var title = "";
                            if (value.TitleID === 1)
                                title = "Mr.";
                            else if (value.TitleID === 2)
                                title = "Mrs.";
                            else if (value.TitleID === 3)
                                title = "Miss.";
                            else if (value.TitleID === 4)
                                title = "Ms.";

                            html = html + "<tr id='" + value.EmployeerID + "'>";
                            html = html + "<input type='hidden' id='" + value.ContactPersonID + "' value='" + value.ContactPersonID + "' />";
                            if (currentContactPersonID == value.ContactPersonID)
                                html = html + "<td><input id='" + value.ContactPersonID + "' type='radio' name='group1' checked></td>";
                            else
                                html = html + "<td><input id='" + value.ContactPersonID + "' type='radio' name='group1'></td>";
                            html = html + "<td>" + title + "</td>";
                            html = html + "<td>" + value.FirstName + "</td>";
                            html = html + "<td>" + value.LastName + "</td>";
                            html = html + "<td>" + value.Email + "</td>";
                            html = html + "</tr>";
                        });
                        $("#tblPopupContactPerson >tbody").html('');
                        $("#tblPopupContactPerson >tbody").append(html);
                    },
                    error: function (data, status, jqXHR) {
                        //                        ShowErrorMsg(status);
                    }
                });
            }

            function RedirectJobSeeker() {
                $.ajax({
                    type: "POST",
                    url: "PostNewJobs.aspx/RedirectJobSeeker",
                    data: JSON.stringify({}),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    cache: false,
                    async: false,
                    success: function (msg) {
                        var flag = msg.d;
                        if (flag == true) {
                            window.location.href = "../JobSeeker/EditProfile.aspx";
                        }
                    }
                });
            }

            $('#<%=rdoJobLocationType.ClientID %>').change(function () {
                ShowHideJobLocationType();
            });

            $("#<%=btnSelectContactPerson.ClientID %>").live('click', function () {
                var currentContactPersonID = $("#<%= hfContactPersonID.ClientID %>").val();
                if (typeof (currentContactPersonID) != 'undefined') {
                    RedirectJobSeeker();
                    LoadContactsByEmployer(currentContactPersonID);
                    $('#contact_person_modal_dialog').dialog('open');
                }
                return false;
            });

            $("#<%=btnSavePostJobs.ClientID %>").live('click', function () {
                RedirectJobSeeker();

                var str = "";
                var val = $('#<%=rdoJobLocationType.ClientID %> input:checked').val();
                if (val === "0") {
                }
                else if (val === "1") {
                    $("#errDivision").css('display', 'none');
                    $("#errDistrict").css('display', 'none');
                    $("#errCity").css('display', 'none');
                    var rowCount = $('#tblJobLocationDetails >tbody tr').length;
                    if (rowCount == 0) {
                        $("#errDivision").css('display', 'inline-block');
                        $("#errDistrict").css('display', 'inline-block');
                        $("#errCity").css('display', 'inline-block');
                        $("#ddlDivision").focus();
                        return false;
                    }


                    $('#tblJobLocationDetails >tbody tr').each(function () {
                        $(this).find("input[type='hidden']").each(function () {
                            str = str + $(this).attr('id') + "^";
                        });
                        str = str.substr(0, str.length - 1) + "~";
                    });
                }
                else if (val === "2") {
                    $("#errCountry").css('display', 'none');
                    $("#errCityName").css('display', 'none');
                    var rowCount = $('#tblJobLocationDetailsOutside >tbody tr').length;
                    if (rowCount == 0) {
                        $("#errCountry").css('display', 'inline-block');
                        $("#errCityName").css('display', 'inline-block');
                        $("#ddlCountry").focus();
                        return false;
                    }


                    $('#tblJobLocationDetailsOutside >tbody tr').each(function () {
                        $(this).find("input[type='hidden']").each(function () {
                            str = str + $(this).attr('id') + "^";
                        });
                        str = str.substr(0, str.length - 1) + "~";
                    });
                }
                $("#<%=hfContactJobCities.ClientID %>").val(str)
            });

            $("#<%=imgNoPhoto.ClientID %>").click(function () {
                $.ajax({
                    type: "POST",
                    url: "PostNewJobs.aspx/MakeSessionEmptry",
                    data: JSON.stringify({}),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    cache: false,
                    async: false,
                    success: function (msg) {
                        $get("<%= imgNewJobImage.ClientID%>").src = "../Images/no_photo_available.jpg";
                    },
                    error: function (data, status, jqXHR) {
                        //                        ShowErrorMsg(status);
                    }
                });
            });

            $('#<%=rdoSalaryRange.ClientID %>').change(function () {
                var val = $('#<%=rdoSalaryRange.ClientID %> input:checked').val();
                if (val === '2') {
                    $("#<%=DisplayRangePerMonth.ClientID %>").css('display', 'inline-block');
                }
                else
                    $("#<%=DisplayRangePerMonth.ClientID %>").css('display', 'none');
            });

            $('#<%=chkRequiredExperience.ClientID %>').change(function () {
                ShowHideRequiredExperience();
            });

        });
    </script>
    <asp:HiddenField ID="hfJobId" runat="server" />
    <asp:HiddenField ID="hfContactPersonID" runat="server" />
    <asp:HiddenField ID="hfNoOfJobsCount" runat="server" />
    <asp:HiddenField ID="hfContactJobCities" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
            <div id="repostAttention" runat="server" style="float: left; display: none; width: 100%; height: 20px;">
                <span style="color: Red;">Attention!:</span>Your reposted job will be considered
                as a newly posted vacancy announcement at Npljobs.com.
            </div>
            <div style="float: left; display: block; width: 100%; display: none;">
                <div style="float: left; text-align: right; width: 540px;">
                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/AlarmBell.png" Width="20px" />
                </div>
                <div style="float: left; padding-left: 4px; padding-top: 4px; font-weight: bold;">
                    Posted Jobs List: <a id="aPostedJobsList" href="PostedJobs.aspx" style="margin: 20px;">
                        <asp:Label ID="lblPostedJobsList" runat="server" Text="0" ForeColor="Red"></asp:Label></a>
                </div>
            </div>
            <div class="row-block-width orange-gradiant">
                <h3 class="panel-title text-center">Post New Job</h3>
            </div>
            <div class="panel-body post-new-job">
                <div class="RowBlockStyle">
                    <div class="RowLeft" style="display: none;">
                        <asp:UpdatePanel runat="server" ID="UpdatePanel4" UpdateMode="Conditional">
                            <ContentTemplate>
                                <script type="text/javascript">
                                    var fileuploaded;
                                    function uploadcomplete(sender, args) {
                                        fileuploaded = args.get_fileName();
                                        var fileExt = fileuploaded.substring(fileuploaded.lastIndexOf(".") + 1);
                                        $get("<%= imgNewJobImage.ClientID%>").style.display = "block";
                                        $get("<%= imgNewJobImage.ClientID%>").src = "/<%= CompanyImageFolder %>/" + "Jobs_<%= EmployeerID %>." + fileExt;
                                        var updateProgress = $get('<%= UpdateProgress1.ClientID %>');
                                        updateProgress.style.display = "none";
                                        $("#<%= lblStatus.ClientID%>").html('Picture uploaded');
                                        $("#<%= lblStatus.ClientID%>").hide("slow");
                                    }

                                    function uploadStart(sender, args) {
                                        var filename = args.get_fileName();
                                        var filext = filename.substring(filename.lastIndexOf(".") + 1);
                                        if (filext.toLowerCase() == "jpg" || filext.toLowerCase() == "gif" || filext.toLowerCase() == "png") {
                                            var updateProgress = $get('<%= UpdateProgress1.ClientID %>');
                                            updateProgress.style.display = "block";
                                            return true;
                                        }
                                        else {
                                            var err = new Error();
                                            err.name = 'My API Input Error';
                                            err.message = 'Only .jpg,.gif,.png  files';
                                            $get('<%= imgNewJobImage.ClientID%>').src = "UploadedCompanyImage/";
                                            throw (err);
                                            return false;
                                        }
                                    }
                                    function uploaderror(sender, args) {
                                        alert(args.get_errorMessage());
                                    }
                                </script>
                                <div>
                                    <img runat="server" src="../Images/no_photo_available.jpg" alt="" id="imgNewJobImage"
                                        style="width: 250px; height: 210px; display: block;" />
                                </div>
                                <div style="width: 98%; height: auto; text-align: center; margin-top: 10px; margin-left: 5px; background-color: Gray;">
                                    <div style="margin-left: 54px;">
                                        <ajaxToolkit:AsyncFileUpload ID="asyncupload" runat="server" OnClientUploadComplete="uploadcomplete"
                                            OnClientUploadStarted="uploadStart" OnUploadedComplete="asynPictureUpload_UploadedComplete"
                                            CompleteBackColor="Green" UploaderStyle="Modern" UploadingBackColor="" OnClientUploadError="uploaderror"
                                            Width="160px" CssClass="FileUploadClass" />
                                    </div>
                                    <div>
                                        <asp:ImageButton ID="imgNoPhoto" runat="server" ImageUrl="../Images/NoPhoto.png"
                                            CssClass="NoPhoto" OnClientClick="return false;" OnClick="imgNoPhoto_OnClick" />
                                    </div>
                                </div>
                                <asp:Label ID="lblStatus" runat="server" Style="font-family: Arial; font-size: small;"></asp:Label>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel4" runat="server">
                            <ProgressTemplate>
                                <img src="../Images/indicator.gif" alt="Loading.." />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </div>

                    <div class="row form-row">
                        <p class="text-right mandatory-text">[Field Marked by <i>* </i>are Mandatory]</p>
                        <div class="row form-body period application-req">
                            <asp:CustomValidator ID="CustomValidator6" ClientValidationFunction="ValidateCompanyDescription"
                                SetFocusOnError="false" Text="*" Display="None" runat="server" ErrorMessage="Company Description: Missing on <a style='color: #0000FF;' href=EmployeerEntry.aspx>Profile Info</a>"></asp:CustomValidator>
                            <asp:CustomValidator ID="CustomValidator7" ClientValidationFunction="ValidatePostalAddress"
                                SetFocusOnError="false" Text="*" Display="None" runat="server" ErrorMessage="Postal Address: Missing on <a style='color: #0000FF;' href=EmployeerEntry.aspx>Profile Info</a>"></asp:CustomValidator>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Job Category<small>*</small></label>
                                <div class="col-md-9">
                                    <asp:DropDownList ID="ddlJobCategory" CssClass="formddl" runat="server" AppendDataBoundItems="true">
                                        <asp:ListItem Value="-1" Text="Select job category"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                                <asp:RequiredFieldValidator ID="reqJobCategory" runat="server" ControlToValidate="ddlJobCategory"
                                    ErrorMessage="Job Category missing" Text="*" EnableClientScript="true" InitialValue="-1"></asp:RequiredFieldValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Job Title<small>*</small></label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtJobTitle" CssClass="TextBoxStyle form-control" runat="server" MaxLength="100" placeholder="Enter Job Title"></asp:TextBox>
                                </div>
                                <asp:RequiredFieldValidator ID="regJobTitle" runat="server" ControlToValidate="txtJobTitle"
                                    ErrorMessage="Job Title missing" Text="*" EnableClientScript="true"></asp:RequiredFieldValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Number of Vacancies<small>*</small></label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtNoOfVacancies" CssClass="TextBoxStyle form-control" runat="server" MaxLength="4" placeholder="Enter No of Vacancies"></asp:TextBox>
                                </div>
                                <asp:RequiredFieldValidator ID="regNoOfVacancies" runat="server" ControlToValidate="txtNoOfVacancies"
                                    ErrorMessage="Number of Vacancies missing" Text="*" EnableClientScript="true"></asp:RequiredFieldValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Application Deadline<small>*</small></label>
                                <div class="col-md-9 application-date">
                                    <asp:TextBox ID="txtApplicationDeadline" runat="server" placeholder="DD/MM/YYYY"
                                        ReadOnly="false" CssClass="formTextBox form-control" />
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtApplicationDeadline"
                                    ErrorMessage="Application Deadline missing" Text="*" EnableClientScript="true"></asp:RequiredFieldValidator>
                                <asp:CustomValidator ID="CustomValidator3" ClientValidationFunction="ValidateApplicationDeadline"
                                    SetFocusOnError="true" Text="*" runat="server" ErrorMessage="Deadline only 40 days from posted date"></asp:CustomValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="RowBlockStyle">
                    <div class="GroupHeaderStyle">
                        <span>Applicant Requirements</span>
                    </div>
                    <div class="row form-row">
                        <div class="row form-body period application-req">
                            <div class="ControlDiv">
                                <label class="labelStyle col-md-2 control-label">
                                    Age Range</label>
                                <div class="col-md-1">
                                    <span>From</span>
                                </div>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddlAgeFrom" CssClass="formddl" runat="server" AppendDataBoundItems="true"
                                        Width="100%">
                                        <asp:ListItem Value="-1" Text="Any"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                                <div class="col-md-1">
                                    <span>To</span>
                                </div>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddlAgeTo" CssClass="formddl" runat="server" AppendDataBoundItems="true"
                                        Width="100%">
                                        <asp:ListItem Value="-1" Text="Any"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Gender</label>
                                <div class="col-md-9">
                                    <asp:RadioButtonList ID="rblGender" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0" Text="Male Only"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="Female Only"></asp:ListItem>
                                        <asp:ListItem Value="2" Text="Any" Selected="True"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Job Type</label>
                                <div class="col-md-9">
                                    <asp:RadioButtonList ID="rdlJobType" runat="server" RepeatDirection="Horizontal" RepeatColumns="5">
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Job Level&nbsp;<small>*</small></label>
                                <div class="col-md-9">
                                    <asp:CheckBoxList ID="rdlJobLeveel" runat="server" RepeatDirection="Horizontal">
                                    </asp:CheckBoxList>
                                </div>
                                <asp:CustomValidator ID="CustomValidator1" ClientValidationFunction="ValidateJobLeveel"
                                    SetFocusOnError="true" Text="*" runat="server" ErrorMessage="Job Level missing"></asp:CustomValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Skills&nbsp;<small>*</small></label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtSkills" CssClass="TextBoxStyle" runat="server" TextMode="MultiLine" Rows="4" />
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="txtSkills"
                                    ErrorMessage="Skills missing" Text="*" EnableClientScript="true" SetFocusOnError="true"></asp:RequiredFieldValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Educational Qualifications&nbsp;<small>*</small></label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtEducationalQualifications" CssClass="TextBoxStyle" runat="server"
                                        TextMode="MultiLine" Rows="4" />
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEducationalQualifications"
                                    ErrorMessage="Educational Qualifications missing" Text="*" EnableClientScript="true"
                                    SetFocusOnError="true"></asp:RequiredFieldValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Job Responsibilities&nbsp;<small>*</small></label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtJobResponsibilities" CssClass="TextBoxStyle" runat="server" TextMode="MultiLine"
                                        Rows="4" />
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtJobResponsibilities"
                                    ErrorMessage="Job Responsibilities missing" Text="*" EnableClientScript="true"
                                    SetFocusOnError="true"></asp:RequiredFieldValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Required Experience</label>
                                <div class="col-md-9">
                                    <asp:RadioButtonList ID="chkRequiredExperience" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0" Text="Yes" Selected="True"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="No"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                            <div class="ControlDiv RequiredExperience manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Total Years of Experience</label>
                                <div class="col-md-1">
                                    <span>Min</span>
                                </div>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddlTotalYearsExpMin" CssClass="formddl" runat="server" AppendDataBoundItems="true" Width="100%">
                                        <asp:ListItem Value="-1" Text="Any"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                                <div class="col-md-1">
                                    <span>Max</span>
                                </div>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddlTotalYearsExpMax" CssClass="formddl" runat="server" AppendDataBoundItems="true"
                                        Width="100%">
                                        <asp:ListItem Value="-1" Text="Any"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                                <%--<label class="labelStyle" style="width: 50px;">
                                    Year(s)</label>--%>
                            </div>
                            <div class="ControlDiv RequiredExperience manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Experience Area/Fields</label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtExperienceAreaFields" CssClass="TextBoxStyle" runat="server"
                                        TextMode="MultiLine" Rows="4" />
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Known Language</label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtKnownLanguage" CssClass="TextBoxStyle" runat="server" TextMode="MultiLine"
                                        Rows="4" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="RowBlockStyle">
                    <div class="GroupHeaderStyle">
                        <span>Responsible Contact Person and Privacy</span>
                    </div>
                    <div class="row form-row">
                        <div class="row form-body">
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Company Name</label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtContactCompanyName" CssClass="TextBoxStyle form-control" runat="server" ReadOnly="true"
                                        Style="background-color: #D0D0D0;"> </asp:TextBox>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    City</label>
                                <div class="col-md-9">
                                    <asp:HiddenField ID="hdnCityID" runat="server" />
                                    <asp:TextBox ID="txtCity" CssClass="TextBoxStyle form-control" runat="server" ReadOnly="true"
                                        Style="background-color: #D0D0D0;"> </asp:TextBox>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Hide Company Info</label>
                                <div class="col-md-9 hide-company-info">
                                    <asp:RadioButtonList ID="rblHideCompanyInfo" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0" Text="Yes"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="No" Selected="True"></asp:ListItem>
                                    </asp:RadioButtonList>
                                    <span class="field-note">["Yes" will hide and "No" show company information on published of this job]</span>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Contact Person&nbsp;<small>*</small></label>
                                <div class="col-md-9">
                                    <input type="text" id="txtContactPerson" runat="server" readonly="readonly" class="TextBoxStyle form-control contact-person"
                                        style="background-color: #D0D0D0;" />
                                    <asp:CustomValidator ID="CustomValidator5" ClientValidationFunction="ValidateContactPerson"
                                        SetFocusOnError="true" Text="*" runat="server" ErrorMessage="Select contact person"></asp:CustomValidator>
                                    <asp:Button ID="btnSelectContactPerson" Text="" runat="server" CssClass="contact-person-button"
                                        OnClientClick="return false;" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="RowBlockStyle">
                    <div class="GroupHeaderStyle">
                        <span>Others</span>
                    </div>
                    <div class="row form-row">
                        <div class="row form-body application-req">
                            <div class="ControlDiv manage-profile" id="divJobLocationType">
                                <label class="labelStyle col-md-2 control-label">
                                    Job Location&nbsp;<small>*</small></label>
                                <div class="col-md-9">
                                    <asp:RadioButtonList ID="rdoJobLocationType" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0" Text="Anywhere in Nepal" Selected="True"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="Within Nepal"></asp:ListItem>
                                        <asp:ListItem Value="2" Text="Outside Nepal"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                            <div style="clear: both;">
                                <div class="ControlDiv location-hide-container" id="divJobLocationOutsideControls" style="display: none;">
                                    <div class="col-md-12">
                                        <div class="col-md-3 margin">
                                            <label class="labelStyle" for="ddlCountry">Country<small id="errCountry" style="display: none;">*</small></label><br />
                                            <select id="ddlCountry" class="formddl">
                                                <option value="-1">None</option>
                                            </select>
                                        </div>
                                        <div class="col-md-3 margin">
                                            <label class="labelStyle" for="txtCityName">City<small id="errCityName" style="display: none;">*</small></label><br />
                                            <input type="text" id="txtCityName" class="TextBoxStyle form-control" placeholder="City">
                                        </div>
                                        <div class="post-job-add-btn">
                                            <div class=" col-md-3">
                                                <span class="float-shadow">
                                                    <asp:Button ID="btnAddOutside" Text="Add" runat="server" CssClass="btn btn-primary orange-gradiant float-shadow"
                                                        OnClientClick="return false;" />
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <div class="ControlDiv location-hide-container" id="divJobLocationDetailsOutside" style="display: none;">
                                        <table id="tblJobLocationDetailsOutside" class="table table-hover">
                                            <thead>
                                                <tr>
                                                    <th style="width: 40px;">SL
                                                    </th>
                                                    <th>Country
                                                    </th>
                                                    <th>City
                                                    </th>
                                                    <th style="width: 60px;">Actions
                                                    </th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="ControlDiv location-hide-container" id="divJobLocationWithinControls" style="display: none;">
                                    <div class="col-md-12">
                                        <div class="col-md-3 margin">
                                            <label class="labelStyle" for="ddlDivision">Divison<small id="errDivision" style="display: none;">*</small></label><br />
                                            <select id="ddlDivision" class="formddl">
                                                <option value="-1">None</option>
                                            </select>

                                        </div>
                                        <div class="col-md-3 margin">
                                            <label class="labelStyle" for="ddlDistrict">District<small id="errDistrict" style="display: none;">*</small></label><br />
                                            <select id="ddlDistrict" class="formddl">
                                                <option value="-1">None</option>
                                            </select>

                                        </div>
                                        <div class=" col-md-3 margin">
                                            <label class="labelStyle" for="ddlCity">City<small id="errCity" style="display: none;">*</small></label><br />
                                            <select id="ddlCity" class="formddl">
                                                <option value="-1">None</option>
                                            </select>

                                        </div>
                                        <div class="post-job-add-btn">
                                            <div class=" col-md-3">
                                                <span class="float-shadow">
                                                    <asp:Button ID="btnAdd" Text="Add" runat="server" CssClass="btn btn-primary orange-gradiant float-shadow"
                                                        OnClientClick="return false;" />
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <div class="ControlDiv location-hide-container" id="divJobLocationDetailsWithin" style="display: none;">
                                        <table id="tblJobLocationDetails" class="table table-hover">
                                            <thead>
                                                <tr>
                                                    <th style="width: 40px;">SL
                                                    </th>
                                                    <th>Division
                                                    </th>
                                                    <th>District
                                                    </th>
                                                    <th>City
                                                    </th>
                                                    <th style="width: 60px;">Actions
                                                    </th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Applicatant's Resume as&nbsp;<small>*</small></label>
                                <div class="col-md-9 applicant-resume">
                                    <asp:CheckBoxList ID="chkApplicantResumeAs" runat="server">
                                        <asp:ListItem Value="0" Text="Online CV/Resume<span class='field-note field-note-applicant'>[Applicants Can Send Mail with CV/Resume to Responsible Contact Person.]</span>"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="Email Attachment<span class='field-note field-note-applicant'>[Applicants Can Send Mail To Responsible Contact Person.]</span>"></asp:ListItem>
                                        <asp:ListItem Value="2" Text="Hard Copy CV<span class='field-note field-note-applicant'>[Applicants Can Sent Hard Copy Of CV In Company Address.]</span>"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </div>
                                <asp:CustomValidator ID="CustomValidator4" ClientValidationFunction="ValidateApplicantResumeAs"
                                    SetFocusOnError="true" Text="*" runat="server" ErrorMessage="Resume Method: Select any of one"></asp:CustomValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Enclosed Photo with CV</label>
                                <div class="col-md-9">
                                    <asp:RadioButtonList ID="rdoEnclosedPhotoCV" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0" Text="Yes"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="No" Selected="True"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Internal Job Code</label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtInternalJobCode" CssClass="TextBoxStyle form-control" runat="server" />
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Apply Instructions</label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtApplyInstructions" CssClass="TextBoxStyle" runat="server" TextMode="MultiLine"
                                        Rows="4" />
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Benefits</label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtBenefits" CssClass="TextBoxStyle" runat="server" TextMode="MultiLine"
                                        Rows="4" />
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Salary Range</label>
                                <div class="col-md-9">
                                    <asp:RadioButtonList ID="rdoSalaryRange" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0" Text="Negotiable" Selected="True"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="Don't want to mention"></asp:ListItem>
                                        <asp:ListItem Value="2" Text="Want to display the following range"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                            <div class="period salary-range ControlDiv manage-profile" runat="server" style="display: none;" id="DisplayRangePerMonth">
                                <label class="labelStyle col-md-2 control-label">
                                    &nbsp;</label>
                                <div class="col-md-2-label">
                                    <span>Minimum</span>
                                </div>
                                <div class="col-md-2">
                                    <asp:TextBox ID="txtMinimum" CssClass="TextBoxStyle form-control" runat="server" Width="100%" Text="0"
                                        MaxLength="6" />
                                </div>
                                <div class="col-md-2-label">
                                    <span>Maximum</span>
                                </div>
                                <div class="col-md-2">
                                    <asp:TextBox ID="txtMaximum" CssClass="TextBoxStyle form-control" runat="server" Width="100%" Text="0"
                                        MaxLength="6" />
                                </div>
                                <div class="col-md-2">
                                    <span>Npr/Month</span>
                                </div>
                                <asp:CustomValidator ID="CustomValidator2" ClientValidationFunction="ValidateApplicantSalaryRange"
                                    SetFocusOnError="true" Text="*" runat="server" ErrorMessage="Enter minimum and maximum salary"></asp:CustomValidator>
                            </div>
                            <div class="ControlDiv manage-profile">
                                <label class="labelStyle col-md-2 control-label">
                                    Job Publish Status</label>
                                <div class="col-md-9">
                                    <asp:RadioButtonList ID="rdoJobPublishStatus" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0" Text="Ready to publish" Selected="True"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="Publish later (drafted jobs)"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                            <div class="ControlDiv manage-profile" id="divJobSource" runat="server">
                                <label class="labelStyle col-md-2 control-label">
                                    Job Source</label>
                                <div class="col-md-9">
                                    <asp:TextBox ID="txtJobSource" CssClass="TextBoxStyle form-control" runat="server" MaxLength="500"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="RowBlockStyle" style="width: 100%;">
                    <div class="form-row">
                        <div class="row form-body application-req">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="<b>Invalid inputs</b>"
                                ShowMessageBox="false" DisplayMode="BulletList" ShowSummary="true" Style="margin-left: 350px;" />
                            <asp:Label ID="lblMsg" runat="server" ForeColor="Green" Font-Bold="true" Visible="false" Style="text-align: center; display: block; margin-top: 10px;">                        
                            </asp:Label>
                        </div>
                    </div>
                </div>
                <div class="RowBlockStyle" style="width: 100%;">
                    <div class="form-row" style="float: right; margin-top: 10px;">
                        <%--<asp:Button ID="btnCancelPostJobs" Text="CANCEL" runat="server" CssClass="RedCommandStyle"
                            Visible="false" OnClientClick="Cancelation(); return false;" />--%>
                        <span class="float-shadow">
                            <asp:Button runat="server" Text="Post Job" ID="btnSavePostJobs" OnClick="btnSavePostJobs_Click"
                                CssClass="btn btn-primary orange-gradiant float-shadow" />
                        </span>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress2" AssociatedUpdatePanelID="UpdatePanel3" runat="server">
        <ProgressTemplate>
            <div style="float: right; margin-right: 10px;">
                <img src="../Images/please_wait.gif" alt="Saving.." />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div id="contact_person_modal_dialog" class="location-hide-container" style="display: none">
        <h4 class="contact-person-hind-msg">Please, Choose contact person and close window.</h4>
        <div id="ContactLists">
            <table id="tblPopupContactPerson" class="table table-hover">
                <thead>
                    <tr>
                        <th>&nbsp;
                        </th>
                        <th>Title
                        </th>
                        <th>First Name
                        </th>
                        <th>Last Name
                        </th>
                        <th>Email
                        </th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
    </div>
</asp:Content>
